import * as React from "react"; import { shallow } from "enzyme"; import toJson from "enzyme-to-json"; import { Header } from "@fluentui/react-northstar"; import { <%=tabReactComponentName%>Remove } from "../<%=tabReactComponentName%>Remove"; describe("<%=tabReactComponentName%>Remove Component", () => { // Snapshot Test Sample it("should match the snapshot", () => { const wrapper = shallow(<<%=tabReactComponentName%>Remove />); expect(toJson(wrapper)).toMatchSnapshot(); }); // Component Test Sample it("should render the tab", () => { const component = shallow(<<%=tabReactComponentName%>Remove />); const divResult = component.containsMatchingElement(
); expect(divResult).toBeTruthy(); }); });